package org.witsoft.dtx.example.service;

import org.witsoft.dtx.example.domain.WalletEvent;
import org.witsoft.dtx.example.domain.WalletLog;

import java.math.BigDecimal;

/**
 * @author XiaoQing Lin
 * @date 2020-09-21 16:00
 */
public interface WalletService {

    void increase(int userId, BigDecimal money , WalletEvent event, String orderId, boolean unusable, String description);

    boolean decrease(int userId, BigDecimal money, WalletEvent event,  String orderId, boolean unusable , String description);

    void transferToUsable(int userId, WalletEvent event, String orderId);

    void revert(int userId, WalletEvent event, String orderId);
}
